<div class="sebelumjud">
        <div class="jodol">Problem | —Filtering</div>
                        <?php
                            if(!empty($page) and !empty($curr_page)){
                                echo '<div id="panah">';
                                if($curr_page>1)
                                echo '<a href="'.base_url().'progress/progress_con/problem_manage/'.$option.'/'.($curr_page-1).'" class="pre"><img src="'.base_url().'images/pre.png" width="18" height="17" /></a>
                                    ';
                                if($curr_page<$page)
                                    echo '<a href="'.base_url().'progress/progress_con/problem_manage/'.$option.'/'.($curr_page+1).'" class="next"><img src="'.base_url().'images/next.png" width="18" height="17" /></a>
                                        ';
                                echo '</div>';
                            }
                        ?>    
</div>
<div class="clear"></div>

    <div id="jumat">
        <div id="last">
            <a href="<?php echo base_url().'progress/progress_con/problem_manage/1'?>">Complain</a>
            <a href="<?php echo base_url().'progress/progress_con/problem_manage/2'?>">Student Feedback</a>
        </div>
    <div class="batasmenu"></div>
                <div id="pad">
                    <form method="post" action="<?php echo base_url().'progress/progress_con/problem_manage_process'?>">
                        <table border="0" cellspacing="0" cellpadding="0" >
                            <tr>
                                <td class="duren">Problem/Complain</td>
                                <td class="duren">Sender</td>
                                <td class="duren">Action</td>
                            </tr>
                            <?php
                                if(!empty($problem)){
                                    for($i=0;$i<count($problem);$i++){
                                        if(!empty($problem[$i]['ID_KOMPLAIN'])){
                                            echo '
                                <tr>
                                    <td>'.$problem[$i]['ISI_KOMPLAIN'].'</td>
                                    <td>
                                            <span class="problem_who">'.$problem[$i]['NAMA'].'</span>
                                            <span class="problem_date">'.$problem[$i]['TGL_KOMPLAIN'].'</span>
                                    </td>
                                    <td><label for="select"></label>
                                        <select name="list_problem[]" id="select" class="siapa">
                                            <option value="0">Not Selected</option>
                                            <option value="1_'.$problem[$i]['ID_KOMPLAIN'].'_-1">Ignored</option>';
                                            if(!empty($list_divisi)){
                                                for($j=0;$j<count($list_divisi);$j++){
                                                    echo '<option value="1_'.$problem[$i]['ID_KOMPLAIN'].'_'.$list_divisi[$j]['ID_DIVISI'].'">'.$list_divisi[$j]['NAMA_DIVISI'].'</option>';
                                                }
                                            }
                                        echo '</select></td>
                                </tr>
                                                ';
                                        }else{
                                            echo '
                                <tr>
                                    <td>'.$problem[$i]['KOMENTAR'].'</td>
                                    <td>
                                        <span class="problem_who">'.$problem[$i]['NAMA'].'</span>
                                        <span class="problem_date"></span>
                                    </td>
                                    <td><label for="select"></label>
                                        <select name="list_problem[]" id="select" class="siapa">
                                            <option value="0">Not Selected</option>
                                            <option value="2_'.$problem[$i]['ID'].'-'.$problem[$i]['KODE_PELATIHAN'].'-'.$problem[$i]['ANGKATAN'].'-'.$problem[$i]['NOMOR_SESI'].'_-1">Ignored</option>';
                                            if(!empty($list_divisi)){
                                                for($j=0;$j<count($list_divisi);$j++){
                                                    echo '<option value="2_'.$problem[$i]['ID'].'-'.$problem[$i]['KODE_PELATIHAN'].'-'.$problem[$i]['ANGKATAN'].'-'.$problem[$i]['NOMOR_SESI'].'_'.$list_divisi[$j]['ID_DIVISI'].'">'.$list_divisi[$j]['NAMA_DIVISI'].'</option>';
                                                }
                                            }
                                        echo '</select></td>
                                </tr>
                                                ';
                                        }
                                    }
                                }
                            ?>
                        </table>
                        <div id="pad" class="enam">
                        <input name="" type="submit" class="send multi" value="Save" />
                    </div>
                        <p class="paging">
                            <?php
                                if(!empty($page) and !empty($curr_page)){
                                    if($curr_page>1)
                                    echo '<a href="'.base_url().'progress/progress_con/problem_manage/'.$option.'/'.($curr_page-1).'"><</a>';
                                    for($i=0;$i<$page;$i++){
                                        if($curr_page==($i+1))
                                            echo '<b>';
                                        echo '<a href="'.base_url().'progress/progress_con/problem_manage/'.$option.'/'.($i+1).'">'.($i+1).'</a>';
                                        if($curr_page==($i+1))
                                            echo '</b>';
                                    }
                                    if($curr_page<$page)
                                        echo '<a href="'.base_url().'progress/progress_con/problem_manage/'.$option.'/'.($curr_page+1).'">></a>';
                                }
                            ?>
<!--                            <a href="#"><</a> <a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> <a href="#">5</a> <a href="#">></a>-->
                        </p>

                    </form>
                </div><!---end div text--->
        </div><!---end div jumat--->
        <div class="clear"></div>